<template>
  <div class="chart" :style="{height}">
    <div class="chart-header">
      <Title :title="title"></Title>
    </div>
    <div class="chart-main">
      <slot></slot>
    </div>
  </div>
</template>

<script>
import Title from "@/views/bigScreen/components/Title/index.vue";
export default {
  name: "ChartBox",
  components: {
    Title,
  },
  props: {
    title: {
      type: String,
      default: '',
    },
    height: {
      type: String,
      default: 'auto',
    },
  },
}
</script>

<style scoped lang="scss">
.chart {
  width: 100%;
  box-sizing: border-box;
  //padding: 8px;
  background-color: rgba(0,0,0, .6);
  position: relative;
  &-main {
    height: calc(100% - 38px);
    position: relative;
    padding: 9px;
  }
}
</style>
